package com.jae.mapper;

import com.jae.model.roleResc.RoleResc;
import com.jae.model.roleResc.RoleRescDTO;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * 角色权限Mapper
 * 
 * @author Jae
 * @email 1571878499@qq.com
 * @date 2020-12-01 09:22:32
 */
@Repository
public interface RoleRescMapper{
	List<RoleRescDTO> findAll(Map map);
	
	RoleRescDTO findOne(Map map);
	
	RoleRescDTO findById(RoleResc roleResc);
	
	int insert(RoleResc roleResc);
	
	int update(RoleResc roleResc);
	
	int updateDelete(RoleResc roleResc);
	
	int delete(RoleResc roleResc);

	int insertBatch(List<RoleResc> list);

	int deleteByRoleId(Integer role_id);

	List<RoleRescDTO> findByRoleId(Integer role_id);
}